//
//  MSNewTextField.h
//  MSJD
//
//  Created by 箭军刘 on 2018/10/30.
//  Copyright © 2018年 xiangbo. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, MSTextType) {
    MSTextTypePhone = 1, // 手机号输入框
    MSTextTypePwd, // 密码输入框
    MSTextTypeCode, // 密码输入框
    MSTextTypeCustom, // 自定义
};

@interface MSNewTextField : UIView

@property (weak, nonatomic) IBOutlet UITextField *textField; // 输入框
@property (weak, nonatomic) IBOutlet UIButton *codeButton; // 获取验证码按钮
@property (weak, nonatomic) IBOutlet UILabel *codeTimeLabel; // 验证码倒计时标签


@property (nonatomic, copy) void (^CodeButtonClickBlock)(UIButton *codeButton); // 验证码按钮点击回调

+ (instancetype)loadNewTextFieldWithType:(MSTextType)type;


@end

NS_ASSUME_NONNULL_END
